Package-level declarations

Custom or specialized Swing components.

Types

Link copied to clipboard
abstract class ActivityTableModelEditor<T>(columns: Array<ColumnInfo<EditableDatum<T>, *>>, itemEditor: CollectionItemEditor<EditableDatum<T>>, emptyText: String, emptySubText: String, isCopyable: (T) -> Boolean = { true }, columnAdjuster: (List<TableColumn>) -> Unit = {}) : TableModelEditor<EditableDatum<T>>

A table that associates a certain data type with a checkbox.

Link copied to clipboard
data class EditableDatum<T>(var active: Boolean, var datum: T)

An entry in the table.

Link copied to clipboard
class JDoubleSpinner(value: Double = 0.0, minValue: Double = -Double.MAX_VALUE, maxValue: Double = Double.MAX_VALUE, stepSize: Double = 0.1, description: String? = null) : JNumberSpinner<Double>

A JNumberSpinner for doubles.

Link copied to clipboard
class JIntSpinner(value: Int = 0, minValue: Int = Int.MIN_VALUE, maxValue: Int = Int.MAX_VALUE, stepSize: Int = 1, description: String? = null) : JNumberSpinner<Int>

A JNumberSpinner for integers.

Link copied to clipboard
class JLongSpinner(value: Long = 0, minValue: Long = Long.MIN_VALUE, maxValue: Long = Long.MAX_VALUE, stepSize: Long = 1, description: String? = null) : JNumberSpinner<Long>

A JNumberSpinner for longs.

Link copied to clipboard
abstract class JNumberSpinner<T : Number, Comparable<T>>(value: T, minValue: T, maxValue: T, stepSize: T, description: String? = null) : JSpinner

An abstract JSpinner for numbers that contains common logic for its subclasses.

Link copied to clipboard
class JSpinnerRange(min: JSpinner, max: JSpinner, maxRange: Double? = null, name: String? = null)

A container for two JSpinners that indicate a range of values.

Link copied to clipboard
class PreviewPanel(getGenerator: () -> DataInsertAction)

A panel that shows a preview of the values generated by a DataInsertAction.

Functions

Link copied to clipboard
fun ButtonGroup.buttons(): Array<AbstractButton>

Returns the buttons in this button group as a typed array.

Link copied to clipboard
fun ButtonGroup.forEach(consumer: (AbstractButton) -> Unit)

Executes a consumer for each button in a group.

Link copied to clipboard
fun ButtonGroup.getValue(): String?

Returns the action command of the currently selected button, or null if no button is selected.

Link copied to clipboard
fun ListPopupImpl.registerModifierActions(captionModifier: (ActionEvent?) -> String)

Registers actions such that actions can be selected while holding (combinations of) modifier keys.

Link copied to clipboard
fun ButtonGroup.setValue(value: Any?)

Sets the currently selected button to the button with the given action command.